<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>绑定CSS</title>
	<style>
		.b {
			color: orange;
		}
		.c {
			background-color: #0a58ca;
		}
	</style>
</head>
<body>

<div id="app">

	<div class="a"
	     v-bind:class="{b: flag1, c: flag2}"
	>"434u08j"</div>

	<div v-bind:class="[e, f, g]">"since"</div>

</div>


<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.js"></script>
<script>
	let app = new Vue({
		el: '#app',
		data: {
			flag1: true,
			flag2: true,
			e: 'x',
			f: 'yyy',
			g: 'z',
		}
	})
</script>
</body>
</html>